
package com.gouqi.lpl.controller;

import com.gouqi.lpl.domain.Team;
import com.gouqi.lpl.service.TeamService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;

@RestController
@RequestMapping("/team")
public class TeamController implements Serializable {

    @Resource
    private TeamService teamService;

    @GetMapping("/get")
    public List<Team> getTeam() {
        List<Team> teamList = teamService.getTeam();
        return teamList;
    }

    @GetMapping("/get-order")
    public List<Team> getTeamByOrder() {
        List<Team> teamList = teamService.getTeamByOrder();
        return teamList;
    }
}